﻿using UnityEditor.Rendering;

using UnityEngine;

using UnityEngine.Rendering.HighDefinition;

using UnityEditor;

[VolumeComponentEditor(typeof(OverriderSSR))]
internal sealed class OverriderSSREditor : VolumeComponentEditor
{
    private SerializedDataParameter m_Intensity;
    public override bool hasAdvancedMode => true;

    public override void OnEnable()
    {
        base.OnEnable();
        var o = new PropertyFetcher<OverriderSSR>(serializedObject);
        m_Intensity = Unpack(o.Find(x => x.intensity));
    }

    public override void OnInspectorGUI()
    {
        PropertyField(m_Intensity);
    }
}